import { HistoryItem } from "./HistoryItem"

export const HistoryItemMap = ({ actions }: Pick<TaskItem, 'actions'>) => {
  return (
    <div className="divide-y py-2" >
      {actions.map((action, idx) => <HistoryItem key={action.userName + idx} {...action} />)}
    </div>
  )
}